import instance from '@/api/http'

export const queryUserApi = (param: any) => instance({//用户查询
  method:'post',
  url:'/users/query',
  data:param
})

export const getAllUserApi = () => instance({//查询所有用户
  method:'get',
  url:'/users/all',
})

export const createUserApi = (param: any) => instance({//用户添加
  method:'post',
  url:'/users/create',
  data:param
})

export const modifyUserApi = (param: any) => instance({//用户修改
  method:'post',
  url:'/users/modify',
  data:param
})

export const delUserApi = (param: any) => instance({//用户删除
  method:'post',
  url:'/users/delete',
  data:param
})

export const modifyPassApi = (param: any) => instance({//用户密码修改
  method:'post',
  url:'/users/password',
  data:param
})

export const modufyStatusrApi = (param: any) => instance({//用户状态修改
  method:'post',
  url:'/users/status',
  data:param
})